export default [
  {
    path: '/login',
    component: () => import('../views/Login')
  },
  {
    path: '/home',
    component: () => import('../views/home/Home'),
    redirect: '/home/welcome',
    children: [
      {
        path: 'welcome',
        component: () => import('../views/home/Welcome'),
        meta: {
          requiresAuth: true
        }
      },
      {
        path: 'projectlist',
        component: () => import('../views/home/Projectlist'),
        meta: {
          requiresAuth: true
        }
      },
      {
        path: 'apilist',
        component: () => import('../views/home/Apilist'),
        meta: {
          requiresAuth: true
        }
      },
      {
        path: 'api/:id',
        component: () => import('../views/home/Apidetail'),
        meta: {
          requiresAuth: true
        }
      },
      {
        path: '/admin/favorite',
        component: () => import('../views/admin/Myfav')
      },
      {
        path: '/admin/createapi',
        component: () => import('../views/admin/Createapi')
      },
      {
        path: '/admin/createproject',
        component: () => import('../views/admin/Createproject'),
        meta: {
          requiresAuth: true
        }
      },
      {
        path: '/admin/createaccount',
        component: () => import('../views/admin/Createaccount'),
        meta: {
          requiresAuth: true
        }
      },
      {
        path: '/admin/mypublish',
        component: () => import('../views/admin/Mypublish'),
        meta: {
          requiresAuth: true
        }
      },
      {
        path: '/admin/editapi/:id',
        component: () => import('../views/admin/Editapi'),
        meta: {
          requiresAuth: true
        }
      },
      {
        path: '/admin/accountlist',
        component: () => import('../views/admin/Accountlist'),
        meta: {
          requiresAuth: true
        }
      }
    ]
  }
]
